import Vue from 'vue'
import Router from 'vue-router'

import Login from '../components/user/login'
<<<<<<< HEAD
=======
import Register from '../components/user/register'
import SmartFarmMain from '../components/smartFarm/user/smartFarmUserApp'
import MyOrder from '../components/smartFarm/user/userInformation/myOrder'
import MyCollection from '../components/smartFarm/user/userInformation/myCollection'
import MyComment from '../components/smartFarm/user/userInformation/myComment'
import MyCart from '../components/smartFarm/user/userInformation/myCart'
import MyInformation from '../components/smartFarm/user/userInformation/myInformation'
import CurrentMap from '../components/smartFarm/user/map/currentMap'
import ToFarmMap from '../components/smartFarm/user/map/toFarmMap';
import Buy from '../components/smartFarm/user/shop/buy'
import Lease from '../components/smartFarm/user/shop/lease'
import SmartFarmBusinessMain from '../components/smartFarm/business/smartFarmBusinessMain'
import Index from '../index'
import toFarmMap from "../components/smartFarm/user/map/toFarmMap";
import lease from "../components/smartFarm/user/shop/lease";
>>>>>>> 5e4686c2c0d99438f8c50af17d62768880770fa9

Vue.use(Router)

export default new Router({
    routes:[
        {
<<<<<<< HEAD
            path: '/user/login',
            name: 'Login',
            component: Login
=======
          path: '/',
          name: 'index',
          component: Index,
        },
        {
          path: '/login',
          name: 'Login',
          component: Login
        },
        {
          path: '/register',
          name: 'Register',
          component: Register
        },
        {
          path: '/smartFarmMain',
          name: 'SmartFarmMain',
          component: SmartFarmMain,
          children:[{
            path: 'MyOrder',
            component: MyOrder
          },{
            path: 'MyComment',
            component: MyComment
          },{
            path: 'MyInformation',
            component: MyInformation
          },{
            path: 'MyCollection',
            component: MyCollection
          },{
            path: 'MyCart',
            component: MyCart
          },{
            path: 'CurrentMap',
            component: CurrentMap
          },{
            path: 'ToFarmMap',
            component: toFarmMap
          },{
            path: 'Buy',
            component: Buy
          },{
            path: 'Lease',
            component: lease
          }
          ]
        },
        {
          path: '/smartFarmBusinessMain',
          name: 'SmartFarmBusinessMain',
          component: SmartFarmBusinessMain
>>>>>>> 5e4686c2c0d99438f8c50af17d62768880770fa9
        }
    ]
})
